#include "stdafx.h"
#include "CppUnitTest.h"

#include "ImageProcStepLib.h"
#include "ImageProcDummyLib.h"

using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace PluginICProcStepsTest
{
	TEST_CLASS(ImageProcStepLibTest)
	{
	private:
		ImageProcStepLib *_lib;
	public:
		TEST_METHOD_INITIALIZE(InitImageProcStepLibTest)
		{
			_lib = new ImageProcStepLib();
		}

		TEST_METHOD_CLEANUP(DeinitImageProcStepLibTest)
		{
			if (_lib != '\0')
				delete _lib;
		}

		
		TEST_METHOD(CreateStaticImageProcStepLibTest)
		{
			Assert::IsNotNull(_lib);
			Assert::IsFalse(_lib->IsValid());		//not added DynLib or Handle
			Assert::IsNull(_lib->GetDynLib());		//not added DynLib or Handle
		}

		TEST_METHOD(CreateDynImageProcStepLibTest)
		{
	/*		ImageProcStepLib *myLib = ImageProcStepLibs::CreateImageProcStepLib(ImageProcDummyLib::ImageProcStepSampleLibPathfileName);	
			Assert::IsNotNull(myLib);
			Assert::IsFalse(myLib->IsValid());		//not added DynLib or Handle
			Assert::IsNull(myLib->GetDynLib());		//not added DynLib or Handle	
			delete myLib;
		*/
		}

	};
}